package com.ijava.base.domain;

import java.util.Date;

public class User extends BaseDomain {

	
	private String userId;
	private String loginId;
	private String password;
	private String email;

	private String realName;
	private String mobile;
	private String phone;
	private String fax;



	public User() {
		super();
	}

	public User(String userId) {
		super();
		this.userId = userId;
	}

	public User(String loginId, String password, String email,
			String realName, String mobile, String phone, String fax) {
		super();
		this.loginId = loginId;
		this.password = password;
		this.email = email;
		this.realName = realName;
		this.mobile = mobile;
		this.phone = phone;
		this.fax = fax;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Account [");
		if (userId != null) {
			builder.append("userId=");
			builder.append(userId);
			builder.append(", ");
		}
		if (loginId != null) {
			builder.append("loginId=");
			builder.append(loginId);
			builder.append(", ");
		}
		if (password != null) {
			builder.append("password=");
			builder.append(password);
			builder.append(", ");
		}
		if (email != null) {
			builder.append("email=");
			builder.append(email);
			builder.append(", ");
		}
		if (realName != null) {
			builder.append("realName=");
			builder.append(realName);
			builder.append(", ");
		}
		builder.append("mobile=");
		builder.append(mobile);
		builder.append(", ");
		if (phone != null) {
			builder.append("phone=");
			builder.append(phone);
			builder.append(", ");
		}
		if (fax != null) {
			builder.append("fax=");
			builder.append(fax);
			builder.append(", ");
		}
		builder.append("]");
		return builder.toString();
	}
	
}
